// pages/qidong/qidong.js
Page({

  data: {
    btn_disabled:true,

  },
  
  bindAgreeChange:function(e) {
    //  console.log(e.detail.value)
    
      this.setData({
        isAgree:e.detail.value.length,
      })
      if (e.detail.value.length==1){
        this.data.bbb="#84ccc9";
       this.setData({
         bbb:this.data.bbb,
         btn_disabled:false,
       })
     }else{
        //onsole.log(e.detail.value.length)
        this.data.bbb="#fafafa";
       this.setData({
         bbb:this.data.bbb,
         btn_disabled:true,
       })
     }
    },
    goto:function(){
      wx.switchTab({
        url: '/pages/mine/mine',
      })
     },
})